<form action="/backend/project/records" method="get" class="filter">
    <label for="category">分类</label>
    <select name="category">
	<option value="0">全部</option>
	<?php foreach ($categories as $category): ?>
    	<option value="<?php echo $category->id; ?>">
		<?php echo $category->name_zh; ?>
    	</option>
	<?php endforeach; ?>
    </select>

    <label for="created_at">创建时间</label>
    <input type="text" class="text datetime" name="start" autocomplete="off"/> 到 <input type="text" class="text datetime" name="end" autocomplete="off"/>

    <input type="submit" class="submit" value="检索"/>
</form>

<ul class="button">
    <li><a href="/backend/project/add" class="add">添加</a></li>
</ul>
<div class="pagination"></div>
<ul class="records">
    <li>Loading...</li>
</ul>
<div class="pagination"></div>

<script type="text/x-jquery-tmpl" id="list-template">
    <li data="${id}">
	<img src="/assets/upload/img/${$item.thumbnail(cover_name)}" alt="${name_zh}"/>
	<h3>${category_name}-${name_zh} <span class="datetime">${created_at}</span></h3>
	<p>{{html $item.nl2br(description_zh)}}</p>
	<div class="action">
	    <a href="/backend/project/edit/${id}">编辑</a>
	    {{if home_display==1}}
	    <a href="javascript:void(0);" class="cancel_home_display">取消首页显示</a>
	    {{else}}
	    <a href="javascript:void(0);" class="home_display">首页显示</a>
	    {{/if}}
	    <a href="javascript:void(0);" class="delete">删除</a>
	</div>
    </li>
</script>

<script type="text/x-jquery-tmpl" id="none-template">
    <li style="text-align: center;">没有搜索到结果。</li>
</script>